<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="common/head :: htmlhead">
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">权限列表</div>
                <div class="layui-card-body">
                    <table id="table_demo" lay-filter="table_demo"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    layui.use(['table','element'],function () {
        var table = layui.table
            ,element = layui.element;

        table.render({
            elem: '#table_demo'
            ,url: '/permissionlist'
            ,method : 'post'
            ,toolbar: true
            ,defaultToolbar: ['filter', 'print']
            ,cellMinWidth: 80
            ,page: true
            ,cols: [
                [
                {type:'checkbox', fixed: 'left'}
                ,{field: 'id', title: 'ID',  sort: true, fixed: 'left'}
                ,{field: 'url', title: '权限URL'}
                ,{field: 'name', title: '权限名称'}
                ,{field: 'des', title: '权限描述'}
                ]
            ]
        });

    })
</script>
</body>
</html>